/**
 * Copyright 2017 orivil Authors. All rights reserved.
 * Use of this source code is governed by a MIT-style
 * license that can be found at https://mit-license.org.
 */

package swagger

type Xml struct {
	// Replaces the name of the element/attribute used for the described schema property.
	// When defined within the Items Object (items), it will affect the name of the
	// individual XML elements within the list. When defined alongside type being array
	// (outside the items), it will affect the wrapping element and only if wrapped is true.
	// If wrapped is false, it will be ignored.
	Name string `json:"name,omitempty"`

	// The URL of the namespace definition. Value SHOULD be in the form of a URL.
	Namespace string `json:"namespace,omitempty"`

	// The prefix to be used for the name.
	Prefix string `json:"prefix,omitempty"`

	// Declares whether the property definition translates to an attribute instead of an
	// element. Default value is false.
	Attribute bool `json:"attribute,omitempty"`

	// MAY be used only for an array definition. Signifies whether the array is wrapped
	// (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value
	// is false. The definition takes effect only when defined alongside type being array
	// (outside the items).
	Wrapped bool `json:"wrapped,omitempty"`
}
